import Vue from 'vue'
import Router from 'vue-router'
import head from '@/components/head'
import foot from '@/components/foot'
import admin from '@/pages/admin'
import asider from '@/components/asider'
import categorys from '@/pages/categorys'
import post from '@/pages/post'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '',
      components: {
          nav:head,
          aside:asider,
          body:post,
          footer:foot
      }
    }
  ]
})
